package br.com.poc.pitagorasnumero.tests.activity;

import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertThat;

import org.junit.Test;
import org.junit.runner.RunWith;

import br.com.poc.pitagorasnumero.R;
import br.com.poc.pitagorasnumero.tests.runner.RunnerTest;
import br.com.poc.pitagorasnumero.view.activity.PitagorasDetailActivity;

@RunWith(RunnerTest.class)
public class MainActivityTest {

	@Test
	public void testBasicResourceValue() throws Exception {
		String helloFromActivity = new PitagorasDetailActivity().getResources().getString(R.string.hello_world);
		assertThat(helloFromActivity, equalTo("Hello world!"));
	}
}
